<template>
    <div class="topic-item" :style="{'background-color': titleColor}">
        {{title}}
    </div>
</template>

<script>
    export default {
        name: "Topic",
        props: {
            title: "",
            titleColor: ""
        }
    }
</script>

<style scoped>
    .topic-item {
        width: 20%;
        float: left;
        height: 100px;
        line-height: 100px;
        border-radius: 5px;
        text-align: center;
        font-size: 20px;
        color: white;
        margin-right: 240px;
        cursor: pointer;
    }

    .topic-item:hover {
        box-shadow: 0 1px 8px rgba(0, 0, 0, .1);
        transform: translateY(-5px);
        transition: 0.5s;
    }

    .topic-item:nth-of-type(3) {
        margin-right: 0;
    }

</style>
